<?php /* Smarty version 2.6.16, created on 2013-09-10 02:35:21
         compiled from ../templates/default//modules/register/step3.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/registration.css"><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/register.js"></script><script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/ajax.js" type="text/javascript" ></script>'; ?>

<?php echo '

<script type="text/javascript">

function testfunction(i)
{
	if(i==\'\')
	{
		document.getElementById("nxtbtn").style.display=\'none\';			
	} 
}
function numbersonly(e)
{		

	var unicode=e.charCode? e.charCode : e.keyCode;		
	//alert(unicode)
	if (unicode!=8 && unicode !=9  &&  unicode !=39 &&  unicode != 46 &&  unicode !=  34 )
	{ 	
		//if the key isn\'t the backspace,Tab key (which we should allow)
		if (unicode<48||unicode>57) //if not a number
			return false; //disable key press
	}
}
</script>
'; ?>



<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<body></body>

<!-- MIDDLE CONTAIN GOES HERE -->
<section class="inner_wrapper">
<section class="middle_portion">
 <form id="frmTradesmanAdd" name="frmTradesmanAdd" method="POST" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/register/step4/">
	<h1 class="registr_head">registration</h1>
    <section class="regis_steps_breadcrum_wrapper">
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step1.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step2.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step3_ho.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step4.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step5.png"></section>
        <section class="clear"></section>
    </section>    
   
    
      <section class="regist_form no_bor">
      <h1>Enter your location/work area</h1><br />
      <span>Note: Enter only australian postal code</span><br /><br />
    	<dl style="width:458px!important;">
        	<dt></dt>
            <dd>

            <div id="ispostalcode">
            	<input type="hidden" name="p_latitude" id="p_latitude" /> 
                <input type="hidden" name="p_longitude" id="p_longitude" />
            </div>
            <section style="width:450px;">
                <section style="width:192px; height:69px; float:left">
                Postal Code
                                    <input type="text" name="googlesearch" id="googlesearch" class="input" value="<?php echo $_POST['googlesearch']; ?>
" 
                    style="width:160px;" maxlength="8" />                                   
                    <div id="google_address_error" ></div>
                    
                   <section class="clear"></section>
               </section>   
                <section style="width:250px;  height:125px ; float:left;">
                 Select one of Multiple States<br />
                 <select class="input3" name="state_id[]" id="state_id" style="width:160px; height:150px; float:left" multiple="multiple" >
                        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['stateArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
						 <option value="<?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id']; ?>
"><?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_name']; ?>
</option>
						 <?php endfor; endif; ?>
                  </select>     
                           
                      <input id="latitude" type="hidden"/><input id="longitude" type="hidden"/>
                      
                         <div id="radius_errror" class="lF clear" style="width:50%"></div>  
                      <section class="clear"></section>
                </section> 
                <section class="clear"></section>
            </section> 
             <section class="clear"></section>
            </dd>
            <div id="distance"></div>
        </dl>
<!--       <div id="sidebar" style="width: 250px; overflow: auto; font-family:Verdana,sans-serif;">-->
               
            
         <section class="clear"></section>
       </section> 
  
    <input type="hidden" id="tradesArray" name="tradesArray" value="<?php echo $this->_tpl_vars['tradesArray']; ?>
" />
    <input type="hidden" id="jobsArray" name="jobsArray" value="<?php echo $this->_tpl_vars['jobsArray']; ?>
" />
    <input type="hidden" id="workarea" name="workarea" value="" />
    <input type="hidden" id="hidden_radius" name="hidden_radius" value="" />   
    <input type="hidden" id="radiusdata" name="radiusdata" value="" />    
    <input type="hidden" id="centerpt" name="centerpt" value="" />
 
     <div id="nxtbtn" style="margin-right:-14px !important; margin-bottom:15px;">
     <section><input type="submit" class="blue_btn rF" value="Next"  name="btnstep3" id="btnstep3"></section>
      <section class="clear"></section>
    </div>
    <section class="clear"></section>
  </form>
</section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>